function [objHistory] = AMKKC_single_dataset(Ks, Y, lambdas, ks, nRepeat)
[nSmp, ~, nKernel] = size(Ks);
nCluster = length(unique(Y));
paramCell = AMKKC_build_param(lambdas, ks);
nParam = length(paramCell);
tic;
resAIO = [];
for i2 = 1:nParam
    param = paramCell{i2};
    disp(['iParam= ', num2str(i2), ', totalParam= ', num2str(nParam), ', lambda= ', num2str(param.lambda), '; k= ', num2str(param.k)]);
    res_param = [];
    options = [];
    options.lambda = param.lambda;
    options.k = param.k;
    options.nRepeat = nRepeat;
    [label_amkkc, H_normalized,objHistory] = AMKKC(Ks, nCluster, options.k,options.lambda);
    res_amkkc = ClusteringMeasure(Y, label_amkkc);
    resAIO = [resAIO; res_amkkc];
    res_amkkc
    res=max(resAIO,[],1)
end
res_amkkc =max(resAIO,[],1);
timeElapsed = toc;